<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>资产初审</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<%@ include file="/html/custom/header.jsp"%>
		<script type="text/javascript"
			src="<%=basePath%>html/js/swss.asset.firstAduit.js"></script>
		<style>
.td-op {
	width: 300px;
}

.left {
	width: 200px;
	float: left;
	height: 100%;
	padding: 10px 0 0 5px;
}

.right {
	padding-left: 210px;
	height: 100%;
}

.right iframe {
	width: 100%;
	height: 100%;
	border: 0px;
}

.toolbar {
	position: absolute;
	top: 40px;
	right: 0;
}
.ui-accordion .ui-accordion-content{padding: 5px 0 0 5px;}
.treeBox{height: 300px;}
.treeBox a:hover{color: red; text-decoration: none;}
.treeview li{background-color: #f2f5f7;}
</style>
		<script type="text/javascript">
$(function(){
	function setLayoutHeight(){
		$("div.layout").height($(window).height()-51);
	}
	setLayoutHeight();
	$(window).resize(function(){
		setLayoutHeight();
	});
	
	$( "#accordion" ).accordion();
	
		$("#treeBox").treeview({
						dept : "/swss/dept/dept_tree.action",
						expandable: true
					});
			
		var $frameRes=$("#frameRes");			
		$("li[id^='deptNo_']>span").live("click",function(){
		
			$frameRes.attr("src","/swss/asset/ast_findComplex.action?asset.deptNo="+$(this).parent().attr("id").split("_")[1]);
			return false;
		});			
					
		$("#treeBoxGB").treeview({
						url : "/swss/sys/sys_gbtree.action",
						expandable: true
					});
					
		$("#treeFundSub,#treeFinanceUser,#treeChargeOffDept").treeview({collapsed: true});
});
</script>
	</head>

	<body>
		<!-- 导航 -->
		<s:action name="showTopNav" executeResult="true" namespace="/user"></s:action>

		<!-- 删除相关 -->
		<%@ include file="/html/custom/formDel.jsp"%>
		<div id="content">

			<div class="toolbar">
				<span id="btnset" class="btnset"> 
			
				<input
						id="btnSearch" type="button" value="通用查询" data="0" /> 
				<input
						id="btnSearchComplex" type="button" value="高级查询" data="0" /> </span>
			</div>
			<div class="layout">
				<div class="left">

					<div id="accordion">
						<h3>
							使用部门
						</h3>
						<div  >
							<div id="treeBox" ></div>
						</div>
						<h3>
							资产分类
						</h3>
						<div>
							<div id="treeBoxGB"></div>
						</div>
						<h3>
							经费来源
						</h3>
						<div>
							<div class="treeBox" >
								<ul id="treeFundSub" class="treeview" >
								<s:iterator value="#request.fundSubList" >
									<li>
										<span><a target="res" href="/swss/asset/ast_findComplex.action?asset.jfly=<s:property value="fieldName4" />" ><s:property value="txt" /></a></span>
									</li>
								</s:iterator>
								</ul>
							</div>
						</div>
						<h3>
							财务账户
						</h3>
						<div>
						
							<div  class="treeBox" >
								<ul id="treeFinanceUser" >
								<s:iterator value="#request.financeUserList" >
									<li>
										<span><a target="res" href="/swss/asset/ast_findComplex.action?asset.finAccount=<s:property value="fieldName4" />" ><s:property value="txt" /></a></span>
									</li>
								</s:iterator>
								</ul>
							</div>
						</div>
						<h3>
							核销科室
						</h3>
						<div>
							<div  class="treeBox">
								<ul id="treeChargeOffDept" >
								<s:iterator value="#request.chargeOffDeptList" >
									<li>
										<span><a target="res" href="/swss/asset/ast_findComplex.action?asset.finDeptName=<s:property value="fieldName4" />" ><s:property value="txt" /></a></span>
									</li>
								</s:iterator>
								</ul>
							</div>
						</div>
					</div>
					
				</div>
				<div class="right">
					<iframe id="frameRes" name="res" scrolling="auto" frameborder="0" width="100%"
						height="100%" src="/swss/asset/ast_findComplex.action?clearbean=1"></iframe>
				</div>

			</div>

			<div id="loading"></div>
			<div id="mask"></div>
			<div id="msg"></div>
	</body>
</html>
